#{extends 'main.html'/}
<style>
<!--
.main{
padding:40px 40px 40px 40px;
}

.newsSend_menu{
backgound:white;
}
-->
</style>
 <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/back.css'}">
		<div class="main container-fluid" >
	      <div class="row">
		    <div class="col-sm-2 ">

		        #{if session.userCategory != "0"}
				<!-- 只有文章管理员和超级用户有权 -->
					<a href="@{Users.showUserInfo}" class="list-group-item #{get 'UserManager' /}" >用户管理</a>
					<a href="@{Backnews.userNewsManager }" class="list-group-item #{get 'ArticleManager' /}" >文章管理</a>
					<a href="@{BackHouses.housesHistory}" class="list-group-item #{get 'HouseManager' /}" >租房管理</a>
					<a href="@{BackWorks.WorksHistory}" class="list-group-item #{get 'WorkManager' /}" >招工管理</a>
				#{/if}
				#{if session.userCategory == "2" || session.userCategory == "3"}
				<a href="@{Courses.showCourseCategories}" class="list-group-item #{get 'CourseManager' /}" >课堂管理</a>
				<a href="@{BackMessages.showMessages }" class="list-group-item #{get 'MessageManager' /}" >信息反馈</a>
				#{/if}
				#{if session.userCategory == "3"}
				<!-- 系统设置，只有管理员才有权限 -->
					<a href="@{SystemSettings.index}" class="list-group-item #{get 'SettingManager' /}" >版权设置</a>
					<a href="@{Links.showLinkCategories}" class="list-group-item #{get 'LinkManager' /}" >链接管理</a>
				#{/if}
				
			</div>
			<div class="col-sm-10">
				     #{doLayout /}
			</div>

			</div>
		</div>

#{if flash.backMessage }
<script type="text/javascript"">
alert('${flash.backMessage }');
</script>
#{/if}
#{if flash.error }
<script type="text/javascript"">
alert('${flash.error }');
</script>
#{/if}

<script type="text/javascript" src="/public/javascripts/manage.js"></script>
